#!/bin/bash

# 自动化导出标准化表(create + data)
# 目前只在linux上测试

list=('class' 'class_schedule' 'classroom' 'course' 'department' 'student' 'teacher' 'user')

for element in ${list[@]}; do

    mysqldump -u root -p education $element >./$element.sql
    echo $element
done
